#define  _CRT_SECURE_NO_WARNINGS
#include<vector>
#include"vector.h"
using namespace std;

namespace my_vector
{
	void test_vector1()
	{
		vector<int> v1;
		v1.push_back(1);
		v1.push_back(2);
		v1.push_back(3);
		v1.push_back(4);
		v1.push_back(5);
		v1.push_back(6);

		vector<int> v2(3, 5);

		vector<int> v3 = {1, 2, 3};
		for (auto& e : v3)
		{
			std::cout << e << ' ';
		}

		v2 = v3;
		for (auto& e : v2)
		{
			std::cout << e << ' ';
		}
		std::cout << std::endl;
		for (auto& e : v3)
		{
			std::cout << e << ' ';
		}
	}

	void test_vector2()
	{
		//vector<int> v = { 1 };
		//v.pop_back();
		//v.pop_back();
		vector<int> v = { 1,2,3,4,5,6 };
		v.resize(7, 0);
		for (auto& e : v)
		{
			std::cout << e << ' ';
		}
		std::cout << std::endl;
		v.resize(3);
		for (auto& e : v)
		{
			std::cout << e << ' ';
		}
	}

	void test_vector3()
	{
		vector<int> v = { 1,2,3,4,4,6 };
		v.insert(v.begin() + v.size(), 5);
		for (auto& e : v)
		{
			cout << e << ' ';
		}
		cout << endl;
		vector<int> v1 = { 1 };
		v1.erase(v1.begin());
		for (auto& e : v1)
		{
			cout << e << ' ';
		}
		cout << endl;
		vector<string> v2 = { "11111111111111","11111111111111", "11111111111111" };
		for (auto& e : v2)
		{
			cout << e << ' ';
		}
	}
}

int main()
{
	//my_vector::test_vector3();
	int a = int();
	double b = double();
	char c = char(); // '\0'


	return 0;
}